﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TimeTracker
{
    public partial class Progress : Form
    {
        public ProgressBar ProgressBar
        {
            get { return this.progressBar1; }
        }

        public string Status
        {
            get { return this.label1.Text; }
            set { this.label1.Text = value; }
        }

        public int ProgressValue
        {
            get { return this.progressBar1.Value; }
            set { this.progressBar1.Value = value; }
        }

        public int ProgressMinimum
        {
            get { return this.progressBar1.Minimum; }
            set { this.progressBar1.Minimum = value; }
        }

        public int ProgressMaximum
        {
            get { return this.progressBar1.Maximum; }
            set { this.progressBar1.Maximum = value; }
        }

        public int ProgressStep
        {
            get { return this.progressBar1.Step; }
            set { this.progressBar1.Step = value; }
        }

        public void PerformStep()
        {
            this.progressBar1.PerformStep();
            Application.DoEvents();
        }

        public Progress()
        {
            InitializeComponent();
        }
    }
}
